package com.firepongo.chaos.model.dto.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)
@ApiModel(value = "列表结果对象", description = "")
public class PageList<T> implements Serializable {
    @ApiModelProperty(value = "列表")
    private List<T> list;
    @ApiModelProperty(value = "总条数")
    private Long total;
    @ApiModelProperty(value = "当前页")
    private Long current;

}
